home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Gold Medal Software 3
/
Gold Medal Software - Volume 3 (Gold Medal) (1994).iso
/
comms
/
tw215doc.arj
/
TEXTWIN.CFG
< prev
next >
Wrap
Text File
|
1993-01-04
|
13KB
|
300 lines
# TEXTWIN.CFG
# This is the textwin initialisation command file.
# It should contain only non-window-specific textwin subcommands,
# as this command file is executed before the textwin display module
# is fully initialised and before any windows have been created.
# The following commands are available in this file:
#
# colour <fg> <bg>
# where <fg> and <bg> are integers in the range 0 to 15
# Valid values depend upon the capabilities of your display
# adaptor. For colour systems: bit0=blue, bit1=green, bit2=red,
# and bit3=intensity.
# [Default: 7 1 (white on blue)]
#
# terminal <width> <height>
# determines the dimensions of the underlying virtual terminal
# that a window will display
# [Default: 80 25]
#
# mouse <kind_of_mouse>
# kind_of_mouse can be 'soft' (software mouse) or 'hard' (hardware mouse)
# Please note that this mechanism is more flexible than hardmouse
# documented below and should be used in preference to it.
# A hardware mouse may cause problems in some display modes if the
# mouse driver software doesn't know how to handle a display
# configuration correctly. For example, mode 0x54 on my S3 card
# is 132 x 43 and the mouse leaves droppings all over the screen.
# Try "mouse hard" first. If you get problems, use "mouse soft".
# (Also, note that due to extreme laziness on my part the mouse
# kind will be reported as '0' or '1' for 'soft' and 'hard' types
# respectively. This will be fixed RSN.)
# [NB: for the curious, I started using the 'mouse' subcommand rather
# than 'hardmouse' due to the (transient) introduction of a new mouse
# kind: 'pretty'. This mouse was a software driven graphical mouse.
# The mouse was drawn by redefining fonts on-the-fly. Although I got
# the code to work, I felt this feature to be simply too expensive
# in terms of code/data space and maintainability (though clever,
# the techniques used were very much 'hacks', IMHO).]
#
# hardmouse <on | off> [[[ NB: THIS WILL BECOME OBSOLETE RSN ]]]
# hardmouse on may cause display problems in some text display
# modes. hardmouse off results in a sluggish mouse cursor but
# with no display problems. Try hardmouse on first. If you get
# screen corruption use hardmouse off.
# [Default: off]
#
# borders <on | off>
# do you want borders around windows? Borders make windows
# slower to draw when moveing/resizing and occupy screen space.
# Windows without borders can be difficult to distinguish from
# other windows and are harder to move/resize.
# [Default: on]
#
# default position <x> <y>
# specify the position of the next window to be created. Both
# <x> and <y> may be negative. If <y> is negative, you'll have
# a hard time trying to drag the window to a new location!
# [Default: 0 0]
#
# default size <width> <height>
# specify the dimensions of the next window to be created.
# These dimensions are limited to the terminal dimensions.
# [Default: 80 25]
#
# default cascade <x-range> <y-range>
# where <x-range> and <y-range> specify the offset limits when
# creating new windows. A new window will be placed at a position
# somewhere between (defPosX, defPosY) and
# (defPosX+cascadeRangeX-1, defPosY+cascadeRangeY-1), assuming
# that x-range and y-range are not zero. Specifying zero for these
# parameters ensures that a window will appear at the default
# position. If these parameters are not zero, windows will appear
# successively further down and to the right of the screen, until
# the x-range and y-range limits are reached. That isn't very
# clear. Play with them and see!
# [Default: 10 10]
#
# default character <which> <what>
# you can configure the characters used in window borders to be any
# character from the PC character set.
# Even values of <which> apply to inactive windows; odd values are
# for the active window. So, use the following values to select the
# value for <which>, and then add 1 if you want to change the character
# for the active window.
#
# 0:vert border 2:horz border 4:top left 6:bot left
# 8:top right 10:bot right 12:(unused) 14:(unused)
# 16:(unused) 18:(unused) 20:(unused) 22:restore
# 24:maximize 26:minimize 28:left scroll 30:right scroll
# 32:up scroll 34:down scroll 36:horz thumb 38:vert thumb
# 40:horz scrollbar 42:vert scrollbar
#
# eg: to make the inactive left vertical border (<which> == 0) into a
# smiley face (character 1) you would use this command in textwin.cfg:
# default character 0 1
#
# to make the ACTIVE left vertical border (<which> == 0 + 1) into
# a column of exclamation marks (character 33) you would use:
# default character 1 33
#
# This command can be used interactively too. New characters apply
# to subsequent new windows only. eg: "text def char 11 4" will change
# the bottom right corner of new active windows into a diamond.
#
# If you specify a value for <which> out of the range 0 - 43 you'll
# get an error message.
#
# (For the curious: the "(unused)" entries above are placeholders for
# other forms characters such as 'cross', 'T-junction', etc, which are
# not used in textwin at the moment.)
#
# emulation default <sess-type> [<emul-name>]
# Sets the default terminal emulation to be used for all subsequent
# windows of the specified session type. Telnet defaults to VT102,
# all other sessions are TTY by default.
#
# <sess-type> is the session type number, encoded as follows:
# 1=Telnet
# 2=FTP
# 3=AX25
# 4=Finger
# 5=Ping
# 6=NET/ROM
# 7=Command
# 8=More
# 9=Hopcheck
# 10=Tip
# 11=PPP PAP
# 12=Dial
# 13=Query
# 14=Cache
#
# <emul-name> is the name of a terminal emulation.
# Case is irrelevant.
# Currently available emulation names are:
# TTY
# VT102
# BigVT102
#
# screen mode <scr_mode>
# scr_mode is the desired display mode when in textwin
#
# screen mono <on | off>
# If on, textwin is forced to appear on the monochrome monitor
# of a dual-monitor system. Obscure.
#
# screen restore <on | off>
# Set this off if you don't want to restore the screen to its
# original state after textwin exits. Setting this off will
# reduce memory usage by a few kilobytes (depending on your
# initial display mode).
#
# param <which> [<what>]
# This is a rather vaguely named subcommand which allows you to
# configure various aspects of textwin without me having to
# add too many new commands, etc. If the <what> parameter is
# omitted, the current value is displayed.
# Both the <which> and <what> parameters are decimal integers.
# The meaning of the <what> parameter depends upon the <which>
# parameter. Hopefully the following table should make things clear:
#
# which description of <what>
# 1 The ASCII value of the background character used when
# erasing the desktop. Default is 177, a half-tone block.
# Only effective within textwin.cfg.
# 2 The software-mouse wibble factor. When the mouse is
# moved onto a cell, the attribute value under the mouse
# cursor is transformed according to this formula:
# new_attr := old_attr XOR wibble_factor
# NB: changing this setting interactively will work, but
# you will probably see mouse droppings! This is not
# considered a bug and this behaviour will not be
# 'fixed'.
#
# key <action> [<ch1> [<ch2>]]
# Allows the user to view and set the keystroke which is bound to the
# specified action. Configurable action values are documented below.
# ch1 and ch2 specify the key codes as returned by the int 21 func 6
# service routine (direct console i/o). If ch1 is non-zero, ch2 need
# not be specified and will be ignored. If ch2 is specified, ch1 should
# be zero. To do this rationally, you will probably need access to a
# table of extended key codes. (I used Appendix B of the
# "MS-DOS Programmer's Reference".) If you want to disable keyboard
# access for a specific action, set both ch1 and ch2 to zero.
#
# action description default key binding
# 0 move window left ALT+<left arrow>
# 1 move window right ALT+<right arrow>
# 2 move window up ALT+<up arrow>
# 3 move window down ALT+<down arrow>
# 4 reduce window width CTRL+<left arrow>
# 5 increase window width CTRL+<right arrow>
# 6 reduce window height CTRL+<up arrow>
# 7 increase window height CTRL+<down arrow>
# 8 switch to next window ALT+F6
#
# For example:
# "textwin key 0 97" causes 'a' to move the current window left
# (this is possible, if somewhat silly!)
# "textwin key 0 0 97" causes CTRL+F4 to move the current window left
# "textwin key 0" shows the key codes which will cause the
# current window to be moved left
# Other textwin commands, NOT valid/appropriate in this file but
# documented here for completeness. As yet, not all textwin commands
# are documented. Sorry.
#
# clock start [<x> [<y>]]
# Creates a windowed clock display. You can optionally specify
# its initial position using the <x> and <y> arguments. The clock
# appears at the top-left if no position is specified.
# I suggest that you put the command:-
# textwin clock start
# as the last line of your autoexec.net file, or enter it manually
# once on line. Note that the former method will not give an
# accurate indication of on-line time as the clock starts long before
# the dialer completes. Connection takes about 30 seconds for me.
#
# clock stop
# Destroys the clock window.
#
# clock reset [<seconds>]
# Resets the elapsed time to the specified number of seconds.
# Defaults to zero if no argument is supplied.
#
# emulation list
# Lists the names of the available terminal emulations.
#
# emulation session <sess-no> [<emul-name>]
# Switches the specified session to use the specified emulation.
# No change occurs if the emulation name is not known.
#
# <sess-no> is the session number (0 is valid here, meaning the
# command processor)
# For example:
#
# colour 1 7
# terminal 80 38
# mouse hard
# borders on
# default position -1 0
# default size 82 40
# default cascade 0 0
# 84 decimal == 0x54 (132 x 43 on my generic S3 card)
# screen mode 84
# screen mono on
# screen restore off
# The following give "chunky" scrollbars on the active window
# rather than my minimalist default!
#
# default character 37 219
# default character 39 219
# default character 41 178
# default character 43 178
# The following commands make scrollbars and resize gadgets disappear
# from inactive windows (NB: the scrollbars and resize gadgets ARE still
# there, its just that the graphics for them are the same as the standard
# border...)
#
# default character 22 196
# default character 24 196
# default character 26 196
#
# default character 28 196
# default character 30 196
# default character 32 179
# default character 34 179
# default character 36 196
# default character 38 179
# default character 40 196
# default character 42 179
# Set Tip sessions to use the VT102 emulation (session type 10 == Tip) and
# set Telnet sessions to use BigVT102 (session type 1 == Telnet).
#
# emulation default 10 bigvt102
# emulation default 1 vt102
# The following lines will cause textwin to look very much like the
# original 'single screen' DIS KA9Q program.
#
# borders off
# default cascade 0 0
# default position 0 0
# colour 7 0
# End of textwin.cfg